package com.zhuang.visitor.double_dispatch;

/**
 * @Classname Client
 * @Description 双分派 测试类
 * @Date 2021/3/27 17:12
 * @Created by dell
 */

public class Client {
    public static void main(String[] args) {
        Animal animal = new Animal();
        Animal dog=new Dog();
        Animal cat=new Cat();

        Execute execute = new Execute();

        animal.accept(execute);
        dog.accept(execute);
        cat.accept(execute);
    }
}
